/**
 * @description Recharge record 充值记录表
 * @date 2020-07-11 13:48
 * @author LI
 */

const seq = require('../sequelize')
const { STRING, INTEGER, DECIMAL } = require('../types')

// users user 写入到数据库时为 users
const RechargeRecord = seq.define('rechargeRecord', {
  linkUserId: {
    type: INTEGER,
    allowNull: false,
    comment: '对应2链接用户的 id'
  },
  orderNo: {
    type: STRING,
    allowNull: false,
    comment: '充值的订单编号'
  },
  rechargeMoney: {
    type: DECIMAL,
    allowNull: false,
    comment: '充值金额'
  },
  remark: {
    type: STRING,
    comment: '要求，备注'
  },
  reserve: {
    type: STRING,
    comment: '保留字段'
  }
},
{
  comment: '充值记录表',
})

module.exports = RechargeRecord
